#define _CRT_SECURE_NO_WARNINGS 1
#include "List.h"

void TestList1()
{
	LNode* plist = LTInit();
	LTPustBack(plist, 1);
	LTPustBack(plist, 2);
	LTPustBack(plist, 3);
	LTPustBack(plist, 4);
	LTPrint(plist);
	
	LTPopBack(plist);
	LTPrint(plist);
}

void TestList2()
{
	LNode* plist = LTInit();
	LTPustFront(plist, 1);
	LTPustFront(plist, 2);
	LTPustFront(plist, 3);
	LTPustFront(plist, 4);
	LTPrint(plist);

	LTPopFront(plist);
	LTPrint(plist);
	LNode* pos = LTFind(plist, 3);
	//LTInsert(pos, 4);
	LTErase(pos);
	LTPrint(plist);
}

int main()
{
	TestList2();
	return 0;
}